<?php
/**
 * Common functions
 * thaodx@gmail.com
 */
class Helpers {
	public static function showFbPostTypeIcon($type = '') {
		if($type === '') return $type;
		switch($type) {
			case 'photo' :
				return '<span class="glyphicon glyphicon-picture" aria-hidden="true" title="Photo"></span>';
			break;
			case 'video' :
				return '<span class="glyphicon glyphicon-film" aria-hidden="true" title="Video"></span>';
			break;
			default :
				return '<span class="glyphicon glyphicon-file" aria-hidden="true"></span>';
			break;
		}
	}
}